package com.ruoyi.financial.service.impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.financial.vo.FBankerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.financial.mapper.FCustOddsMapper;
import com.ruoyi.financial.domain.FCustOdds;
import com.ruoyi.financial.service.IFCustOddsService;

/**
 * 客户赔率关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-06
 */
@Service
public class FCustOddsServiceImpl implements IFCustOddsService 
{
    @Autowired
    private FCustOddsMapper fCustOddsMapper;

    /**
     * 查询客户赔率关联
     * 
     * @param id 客户赔率关联主键
     * @return 客户赔率关联
     */
    @Override
    public FCustOdds selectFCustOddsById(Long id)
    {
        return fCustOddsMapper.selectFCustOddsById(id);
    }

    /**
     * 查询客户赔率关联列表
     * 
     * @param fCustOdds 客户赔率关联
     * @return 客户赔率关联
     */
    @Override
    public List<FCustOdds> selectFCustOddsList(FCustOdds fCustOdds)
    {
        return fCustOddsMapper.selectFCustOddsList(fCustOdds);
    }

    /**
     * 新增客户赔率关联
     * 
     * @param fCustOdds 客户赔率关联
     * @return 结果
     */
    @Override
    public int insertFCustOdds(FCustOdds fCustOdds)
    {
        return fCustOddsMapper.insertFCustOdds(fCustOdds);
    }

    /**
     * 修改客户赔率关联
     * 
     * @param fCustOdds 客户赔率关联
     * @return 结果
     */
    @Override
    public int updateFCustOdds(FCustOdds fCustOdds)
    {
        return fCustOddsMapper.updateFCustOdds(fCustOdds);
    }

    /**
     * 批量删除客户赔率关联
     * 
     * @param ids 需要删除的客户赔率关联主键
     * @return 结果
     */
    @Override
    public int deleteFCustOddsByIds(Long[] ids)
    {
        return fCustOddsMapper.deleteFCustOddsByIds(ids);
    }

    /**
     * 删除客户赔率关联信息
     * 
     * @param id 客户赔率关联主键
     * @return 结果
     */
    @Override
    public int deleteFCustOddsById(Long id)
    {
        return fCustOddsMapper.deleteFCustOddsById(id);
    }

    @Override
    public List<FBankerVo> selectFCustBankerOddsList(Long custId, Long userId) {
        return fCustOddsMapper.selectFCustBankerOddsList(custId,userId) ;
    }
}
